<?php 
session_start();

include ('../../configs/cms.php');
include ('../includes/index.php');
include ('../functions/levelcheck.php');

if(isset($_SESSION['username']) && IsAdmin($_SESSION['username']) == true)
{
?>
	<html>
	<head>
	<title>Admin Controle Paneel</title>
	</head>
	<frameset cols="200, *">
	<frame src="menu.php" name="navigatieframe" noresize>
	<frame src="rechts.php" name="hoofdframe">
	</frameset>
	</html>
<?php
}
else
{
	//header ('Location: ' . $_SESSION['config']['url']);
	header("HTTP/1.0 404 Not Found");
	//echo '<body><h4>Je hebt niet de rechten hiervoor. Als dit niet juist is, contact de admin van deze site</h4></body>';
}
?>
